package com.example.lyqwork.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

public class UserDto {
    @NotBlank(message = "用户名不能为空")
    @Length(min = 4,max = 10,message = "用户名长度为4-10位")
    private String loginName;

    @Override
    public String toString() {
        return "UserDto{" +
                "userId=" +
                ", loginName='" + loginName + '\'' +
                '}';
    }


    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }
}
